package com.kun.service.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.kun.domain.TFollowingGroup;

import java.util.List;

public interface ITFollowingGroupService extends IService<TFollowingGroup> {

    /**
     * 根据群组新增
     */
    boolean insert(TFollowingGroup tFollowingGroup);

    /**
     * 根据群组类型查找当前用户的群组
     */
    TFollowingGroup getGroupByTypeId(String groupId);

    /**
     * 根据群组ID查询
     */
    TFollowingGroup getFollowGroupById(Long groupId);

    /**
     * 根据用户ID查询所有的群组
     */
    List<TFollowingGroup> getUserFollowingGroups(String userId);
}
